import React from 'react'

import ListItem from '../ListItem'

const CommentList = props => {
  return (
    <div className="comment-list">
      {/* 列表项 */}
      {props.comments.map(item => (
        <ListItem key={item.id} {...item} />
      ))}
    </div>
  )
}

export default CommentList
